package com.questionnaire.service.impl;

import com.questionnaire.dao.UserDao;
import com.questionnaire.pojo.User;
import com.questionnaire.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class UserServiceImpl implements UserService{

    @Autowired
    private UserDao userDao;

    @Override
    public User find(String userId) {
        return userDao.find(userId);
    }
}
